package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {
    public String publish(Movement movement);

    PageResult<Movement> findPageByUserId(Long userId, Integer page, Integer pageSize);

    //查找用户可以浏览的动态
    List<Movement> findFriendsMovements(Long userId, Integer page, Integer pageSize);

    List<Movement> getMovementsByPid(List<Long> pids);

    List<Movement> randomMovements(int count);

    Movement findById(String movementId);

    PageResult findPage(Integer page, Integer pagesize, Long uid, Integer state);

    void updateState(String movementId, int i);
}
